package com.cos.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ViewController {

    @RequestMapping("{model}/{page}.html")
    public String toPage(@PathVariable String model,@PathVariable String page){
        return model+"/"+page;
    }
}
